package com.spdb.oa.type;

import java.util.List;

public class DataSourceWFFormElement extends WFFormElement {
	public static class Entry {
		public String sendDateTime;
		public String deptName;
		public String replyDateTime;
		public String replyOpinion;
		public Entry(String sendDateTime, String deptName, String replyDateTime, String replyOpinion) {
			super();
			this.sendDateTime = sendDateTime;
			this.deptName = deptName;
			this.replyDateTime = replyDateTime;
			this.replyOpinion = replyOpinion;
		}
		@Override
		public String toString() {
			return "Entry [sendDateTime=" + sendDateTime + ", deptName=" + deptName + ", replyDateTime=" + replyDateTime
					+ ", replyOpinion=" + replyOpinion + "]";
		}
		
	}
	
	/**
	 * the first entry is table header, the second and following entry is data
	 */
	public List<List<String>> table;
	public String showField;
	public DataSourceWFFormElement(List<List<String>> table, String showField) {
		super();
		this.table = table;
		this.showField = showField;
	}
	@Override
	public String toString() {
		return "DataSourceWFFormElement [table=" + table + ", showField=" + showField + ", id=" + id + ", name=" + name
				+ ", displayName=" + displayName + ", controlType=" + controlType + ", required=" + required
				+ ", visible=" + visible + ", enabled=" + enabled + ", dataType=" + dataType + "]";
	}
	
	
	
}
